import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 列表全局组件
import ArticleItem from '@/components/ArticleItem'
// 完整导入
import Vant from 'vant'
import 'vant/lib/index.css'

// 引入全部样式
import 'vant/lib/index.less'

Vue.use(Vant)
// 自动按需导入
// import { Swipe, SwipeItem } from 'vant'

// Vue.use(Swipe)
// Vue.use(SwipeItem)

Vue.component('ArticleItem', ArticleItem)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
